package com.shell.guard.config.oauth;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.authentication.configurers.GlobalAuthenticationConfigurerAdapter;

import com.shell.guard.security.CustomAuthenticationProvider;

@Configuration
public class AuthenticationManagerConfig extends GlobalAuthenticationConfigurerAdapter {
	
	@Autowired
	CustomAuthenticationProvider customAuthenticationProvider;

	public void configure(AuthenticationManagerBuilder auth) throws Exception {
		auth.authenticationProvider(this.customAuthenticationProvider);
	}
}
